/**
 * Generation history related types
 */

export type HistoryItemStatus = 'success' | 'failed' | 'cancelled';

export interface HistoryItem {
  id: string;
  taskId: string;
  projectName: string;
  projectType: string;
  uiFramework: string;
  generatedAt: string;
  status: HistoryItemStatus;
  duration: number;
  menuPreview: any;
  fileCount: number;
  size: number;
  canDownload: boolean;
}

export interface HistoryState {
  items: HistoryItem[];
  loading: boolean;
  error: string | null;
  currentPage: number;
  pageSize: number;
  totalCount: number;
  selectedItem: HistoryItem | null;
}